package com.easymin.weixin.entity.simpleCarPool;

import com.easymin.weixin.entity.BaseEntity;
import org.apache.commons.lang3.StringUtils;

/**
 * 工作车.
 *
 * @author Shine
 */
public class WorkCar extends BaseEntity {
  /**
   * 未指派.
   */
  public static final int WORK_CAR_NEW = 0;
  /**
   * 空闲.
   */
  public static final int WORK_CAR_FREE = 1;
  /**
   * 忙碌.
   */
  public static final int WORK_CAR_BUSY = 2;

  private static final long serialVersionUID = 1L;

  private String workCarName; // 工作车名称

  private Double fixedMoney; // 固定费用（接到司机自动扣费2块）

  private String plateNumber;// 车牌号

  private String carType;// 车型

  private Integer status;// 状态

  private String memo;

  private Long companyId;

  private String companyName;// 公司名字

  private Integer seating;// 座位数

  private String address;

  private Double lng;

  private Double lat;

  private Long currentDriverId;// 当前司机id

  private String currentDriverName;// 当前司机名称

  private Long workCarAreaId;

  private WorkCarArea workCarArea;

  private String appKey;


  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey;
  }

  public String getWorkCarName() {
    return workCarName;
  }

  public void setWorkCarName(String workCarName) {
    this.workCarName = workCarName;
  }

  public Double getFixedMoney() {
    return fixedMoney;
  }

  public void setFixedMoney(Double fixedMoney) {
    this.fixedMoney = fixedMoney;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  public Integer getSeating() {
    return seating;
  }

  public void setSeating(Integer seating) {
    this.seating = seating;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public Double getLng() {
    return lng;
  }

  public void setLng(Double lng) {
    this.lng = lng;
  }

  public Double getLat() {
    return lat;
  }

  public void setLat(Double lat) {
    this.lat = lat;
  }

  public WorkCarArea getWorkCarArea() {
    return workCarArea;
  }

  public void setWorkCarArea(WorkCarArea workCarArea) {
    this.workCarArea = workCarArea;
  }

  public String getPlateNumber() {

    return StringUtils.trimToEmpty(plateNumber).toUpperCase();
  }

  public void setPlateNumber(String plateNumber) {
    this.plateNumber = plateNumber;
  }

  public String getCarType() {
    return carType;
  }

  public void setCarType(String carType) {
    this.carType = carType;
  }

  public Integer getStatus() {
    if (null == status) {
      return WORK_CAR_NEW;
    }
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getMemo() {
    return memo;
  }

  public void setMemo(String memo) {
    this.memo = memo;
  }

  public Long getCurrentDriverId() {
    return currentDriverId;
  }

  public void setCurrentDriverId(Long currentDriverId) {
    this.currentDriverId = currentDriverId;
  }

  public String getCurrentDriverName() {
    return currentDriverName;
  }

  public void setCurrentDriverName(String currentDriverName) {
    this.currentDriverName = currentDriverName;
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public Long getWorkCarAreaId() {
    return workCarAreaId;
  }

  public void setWorkCarAreaId(Long workCarAreaId) {
    this.workCarAreaId = workCarAreaId;
  }

}
